Ir al contenido
Menú principal
Menú principal
mover a la barra lateral
ocultar
Navegación
Página principal
Cambios recientes
Página aleatoria
Ayuda sobre MediaWiki
Wiki TVenserio
Buscar
Buscar
Crear una cuenta
Acceder
Herramientas personales
Modo oscuro
Crear una cuenta
Acceder
Páginas para editores desconectados
más información
Contribuciones
Discusión
Edición de «
Módulo:Redirect template handler/doc
»
Módulo
Discusión
español
Leer
Editar código
Ver historial
Herramientas
Herramientas
mover a la barra lateral
ocultar
Acciones
Leer
Editar código
Ver historial
General
Lo que enlaza aquí
Cambios relacionados
Páginas especiales
Información de la página
Advertencia:
no has iniciado sesión. Tu dirección IP se hará pública si haces cualquier edición. Si
inicias sesión
o
creas una cuenta
, tus ediciones se atribuirán a tu nombre de usuario, además de otros beneficios.
Parece que ya se había deshecho la edición.
Comprobación antispam. ¡
No
rellenes esto!
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{High-use}} {{Lua|Module:Arguments|Module:Check for unknown parameters|Module:String}} '''Module:Redirect template handler''' is used to facilitate editor-friendly redirect template usage. This module is currently used with episode and fictional characters, elements and locations via [[Module:Television episode redirect handler]] and [[Module:Fiction redirect category handler]]. == Usage == The module has two entry points <syntaxhighlight lang="lua" inline>setEpisodeRedirect(args)</syntaxhighlight> and <syntaxhighlight lang="lua" inline>setFictionalObjectRedirect(args, objectType)</syntaxhighlight>. The functions return a {{tl|Redirect category shell}} and a boolean value if the redirect is the primary redirect. If an unknown parameter is used, the module also returns a warning about the usage and adds the page to tracking category. <syntaxhighlight lang="lua"> local redirectTemplateHandler = require('Module:Redirect template handler') local redirectCategoryShell, mainRedirect = redirectTemplateHandler.setEpisodeRedirect(args) local redirectCategoryShell, mainRedirect = redirectTemplateHandler.setFictionalObjectRedirect(args, objectType) </syntaxhighlight> == Parameter list == <section begin=Parameters/><section begin=Arrowverse/> {| class="wikitable" |- ! scope="col" | Parameter ! scope="col" | Explanation ! scope="col" | {{tl|R with possibilities}} ! scope="col" | {{tl|R printworthy}} or {{tl|R unprintworthy}} |-<section end=Arrowverse/> ! scope="row" | <code>series_name</code> | The name of the series article, including disambiguation. Will set the value entered as series which this redirect belongs to. | - | - |- ! scope="row" | <code>series_name#</code> | For multiple series starting from the 2nd series in the style of {{para|series_name2}}. The name of the series article names, including disambiguation. Will set the values entered as series which this object belongs to. | - | - |- ! scope="row" | <code>multi_series_name_table</code> | Multiple series article names, including disambiguation. Will set the values entered as series which this object belongs to. This parameter can only be used from other modules as it requires the parameters to be passed as an args table. | - | - |- ! scope="row" | <code>parent_series</code> | Used for scenarios where a series has a short web-based companion series ("minisodes"), and the redirects should be placed in the parent series category. | - | - |-<section begin=Arrowverse/> ! scope="row" | <code>restricted</code> | Will tag the redirect with: {{tl|R restricted}} and set the value entered as the correct title. | Yes | printworthy |- ! scope="row" | <code>birth_name</code> | Only valid for character redirects; Any value will tag the redirect with: {{tl|R from birth name}}. | No | printworthy |- ! scope="row" | <code>alt_name</code> | Any value will tag the redirect with: {{tl|R from alternative name}}. | No | printworthy |- ! scope="row" | <code>former_name</code> | Any value will tag the redirect with: {{tl|R from former name}}. | No | printworthy |- ! scope="row" | <code>short_name</code> | Any value will tag the redirect with: {{tl|R from short name}}. | No | printworthy |- ! scope="row" | <code>long_name</code> | Any value will tag the redirect with: {{tl|R from long name}}. | No | printworthy |- ! scope="row" | <code>sort_name</code> | Only valid for character redirects; Any value will tag the redirect with: {{tl|R from sort name}}. The value must be two characters. See {{tl|R from sort name}} for more information. | No | printworthy |- ! scope="row" | <code>title_name</code> | Only valid for character redirects; Any value will tag the redirect with: {{tl|R from name with title}}. | No | unprintworthy |- ! scope="row" | <code>alt_spelling</code> | Will tag the redirect with: {{tl|R from alternative spelling}} and set the value entered as the correct spelling to use. | No | unprintworthy |- ! scope="row" | <code>to_diacritic</code> | Any value will tag the redirect with: {{tl|R to diacritic}}. | No | unprintworthy |- ! scope="row" | <code>incorrect_name</code> | Any value will tag the redirect with: {{tl|R from incorrect name}} and set the {{para|primary}} value entered as the correct name to use. If {{para|primary}} isn't used, it will instead use the value entered here. | No | unprintworthy |- ! scope="row" | <code>capitalisation</code> | Any value will tag the redirect with: {{tl|R from miscapitalisation}} and set the {{para|primary}} value entered as the correct capitalisation to use. If {{para|primary}} isn't used, it will instead use the value entered here. | No | unprintworthy |- ! scope="row" | <code>unneeded_dab</code> | Any value will tag the redirect with: {{tl|R from unnecessary disambiguation}}. | No | unprintworthy |- ! scope="row" | <code>draft_move</code> | Any value will tag the redirect with: {{tl|R from move}} and {{tl|R from drafts}}. | No | unprintworthy |- ! scope="row" | <code>anchor</code> | Set as default for episode redirects. Any value will tag the redirect with: {{tl|R to anchor}}. | - | - |- ! scope="row" | <code>section</code> | Set as default for fictional character, element and location redirects. Any value will tag the redirect with: {{tl|R to section}}. | - | - |- ! scope="row" | <code>list</code> | Any value will tag the redirect with: {{tl|R to list entry}}. | - | - |- ! scope="row" | <code>to_article</code> | Used for redirects to articles, and not to a specific section of the article. | - | - |- ! scope="row" | <code>primary</code> | Will tag the redirect with: {{tl|R avoided double redirect}} and set the value entered as the primary redirect. | - | - |- ! scope="row" | <code>merge</code> | Any value will tag the redirect with: {{tl|R from merge}}. | - | - |- ! scope="row" | <code>history</code> | Any value will tag the redirect with: {{tl|R with history}}. | - | - |- ! scope="row" | <code>dab_exception</code> | Any value will set the current disambiguation used as correct, regardless if it follows a standard style. See note below. | - | - |- ! scope="row" | <code>correct_disambiguation</code> | Value will be used for disambiguation validation. Should be used if the disambiguation is different than the series name, such as when using a franchise name. | - | - |- ! scope="row" | <code>test</code> | Any value will set instruct the function to return only testing validation data. Used in /testcases. | - | - |- ! scope="row" | <code>test_title</code> | Value will be used for title validation. Used in /testcases. | - | - |}<section end=Parameters/><section end=Arrowverse/> == Notes == <section begin="Notes"/><section begin="Notes-small"/><section begin="Notes-episode"/> * The redirect will automatically be tagged with {{tl|R from television episode}}, {{tl|R from fictional character}}, {{tl|R from fictional element}}, {{tl|R from fictional location}} or {{tl|R from song}} depending on the type of redirect, and be placed in the relevant category.<section end="Notes-small"/> * Using the series parameters will place the redirect in a series-specific category: <code><nowiki>[[Category:(series) (object) redirects to lists]]</nowiki></code>, such as [[:Category:Arrow (TV series) character redirects to lists]]. * If the redirect does not use one of the following correct disambiguation — <code>(series)</code>, <code>(series) episode</code>, <code>(series) character</code>, <code>(series) element</code> or <code>(series) character</code> — the redirect will be tagged with {{tl|R from incorrect disambiguation}} and {{tl|R unprintworthy}}.<section begin="Notes-small"/> * If the redirect is using one of the unprintworthy templates, it will be categorized as {{tl|R unprintworthy}}. If not, it will be categorized as {{tl|R printworthy}}. * If the redirect is using one of the templates marked above as not {{tl|R with possibilities}}, it won't be categorized with it.<section end="Notes-small"/><section end="Notes"/> * For episode redirects, a [[WP:Short description|short description]] will be added only to the primary redirect. Additionally, If {{para|series_name2}} (or higher) is used, a short description won't be added.<section end="Notes-episode"/> == Tracking category == {{Category link with count|Category:Pages using Module:Redirect template handler with unknown parameters}} {{Fiction-related redirects templates}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Resumen:
Ten en cuenta que todas las contribuciones a Wiki TVenserio pueden ser editadas, modificadas o eliminadas por otros colaboradores. Si no deseas que las modifiquen sin limitaciones, no las publiques aquí.
Al mismo tiempo, asumimos que eres el autor de lo que escribiste, o lo copiaste de una fuente en el dominio público o con licencia libre (véase
Wiki TVenserio:Derechos de autor
para más detalles).
¡No uses textos con copyright sin permiso!
Cancelar
Ayuda de edición
(se abre en una ventana nueva)
Plantillas usadas en esta página:
Plantilla:Aviso
(
editar
)
Plantilla:Category link with count
(
editar
)
Plantilla:Desvincular
(
editar
)
Plantilla:Ep
(
editar
)
Plantilla:Fiction-related redirects templates
(
editar
)
Plantilla:High-use
(
editar
)
Plantilla:Hlist/styles.css
(
editar
)
Plantilla:Lista de enlaces
(
editar
)
Plantilla:Plantilla con Lua
(
editar
)
Plantilla:Navbox
(
editar
)
Plantilla:Para
(
editar
)
Plantilla:Plantilla con Lua
(
editar
)
Plantilla:Reemplazar
(
editar
)
Plantilla:Ep
(
editar
)
Plantilla:Y-e
(
editar
)
Módulo:Argumentos
(
editar
)
Módulo:Arguments
(
editar
)
Módulo:High-use
(
editar
)
Módulo:Listas
(
editar
)
Módulo:Message box
(
editar
)
Módulo:Message box/configuration
(
editar
)
Módulo:Message box/ombox.css
(
editar
)
Módulo:Navbar
(
editar
)
Módulo:Navbar/configuration
(
editar
)
Módulo:Navbar/styles.css
(
editar
)
Módulo:Navbox
(
editar
)
Módulo:Navbox/configuration
(
editar
)
Módulo:Navbox/styles.css
(
editar
)
Módulo:Páginas
(
editar
)
Módulo:String
(
editar
)
Módulo:Tablas
(
editar
)
Módulo:Transclusion count
(
editar
)
Módulo:Transclusion count/data/R
(
editar
)
Módulo:Yesno
(
editar
)
Activar o desactivar el límite de anchura del contenido