Diferencia entre revisiones de «Plantilla:Infobox»
Ir a la navegación
Ir a la búsqueda
(test) |
m (As much as I want the /Summary redirects to show up on the list, I don't think we want the redirects for all 100+ SA individual chapter summaries to be there) |
||
(No se muestran 35 ediciones intermedias de 3 usuarios) | |||
Línea 1: | Línea 1: | ||
{| class=infobox |
{| {{{main-params|}}} class="infobox side {{{classes|}}}" {{#if:{{{id|}}}| id="{{{id}}}" | {{#if: {{NAMESPACENUMBER}} == 10 | {{infobox/missing-id}} | }} }} |
||
|- align="center" |
|- {{{title-row-params|}}} align="{{{title-align|center}}}" |
||
! colspan={{{cols|2}}} |
! colspan={{{cols|2}}} class="title {{{title-classes|}}}" {{{title-params|}}} | {{{title}}} |
||
|- |
|- |
||
{{{1}}} |
<noinclude>|</noinclude>{{{1}}} |
||
{{#ifeq:{{{subpages}}}|y| |
|||
{{!}}- |
|||
! colspan={{{cols|2}}} {{!}} This page has subpages with<br />additional information on this topic |
|||
{{!}}- |
|||
{{!}}colspan={{{cols|2}}} {{!}} {{Special:PrefixIndex/{{FULLPAGENAME}}/|hideredirects=yes}} |
|||
}} |
|||
|- |
|- |
||
<!-- |
|||
! width=10% style="{{RoundBorder|0 0 0 10px}} background:silver;"| |
|||
| |
|||
|}<noinclude> |
|||
-->{{{replacement-cats|<!-- |
|||
[[category:Infobox template| ]] |
|||
-->{{#if:{{NAMESPACE}}<!-- |
|||
-->|<!-- page is in a namespace other than 0 |
|||
-->|{{{default-cats|}}}<!-- |
|||
-->}}<!-- |
|||
-->}}}<!-- intentional blank lines: --> |
|||
|}<noinclude>[[category: infoboxes| ]] |
|||
<table class="infobox" > |
|||
<tr align="center"> |
|||
This template is a basis for all [[:category: infoboxes|infobox]] templates. |
|||
<th colspan="2" class="title"> Example Infobox</th> |
|||
</tr> |
|||
=== Template === |
|||
<tr> |
|||
< |
<pre class=mw-code> |
||
{{food |
|||
<td class=info>{{{2}}}</td> |
|||
|id= |
|||
</tr> |
|||
|title= |
|||
<tr> |
|||
|1=<!-- rows, for example: |
|||
<th>eg</th> |
|||
{{row/image+artist}} |
|||
<td>An Example</td> |
|||
{{row/kv | Featured in | ''{{{books}}}'' }} |
|||
</tr> |
|||
--> |
|||
|main-params= |
|||
<th width="10%" style="{{RoundBorder|0 0 0 10px}}"></th> |
|||
|classes= |
|||
<td></td> |
|||
|cats= |
|||
</tr> |
|||
|default-cats= |
|||
</table> |
|||
|title-row-params= |
|||
|title-align=center |
|||
|title-params= |
|||
|title-classes= |
|||
|cols=2 |
|||
}} |
|||
</pre> |
|||
=== Parameters === |
|||
Highlighted lines indicate '''mandatory''' parameters. |
|||
On lines with multiple parameters (e.g. <code>|id=</code>) pick only the one most appropriate. |
|||
{{docs|title={{t|infobox|}} Parameters}} |
|||
<!-- ROW: id --> |
|||
{{docs/row/required |
|||
|param=id |
|||
|desc= Use this to apply an <code>id</code> html parameter to the generated infobox. It is required for the edit-templates gadget to work. |
|||
|eg=<code><nowiki>|id=Character</nowiki></code> on {{t|character}} |
|||
}} |
|||
<!-- ROW: title --> |
|||
{{docs/row/required |
|||
|param=title |
|||
|desc= Use this to fill the header-row of the infobox with a title. |
|||
|eg=<code><nowiki>|title={{PAGENAME}}</nowiki></code> will fill it with the name of the page the infobox is shown on. |
|||
}} |
|||
<!-- ROW: 1 --> |
|||
{{docs/row/required |
|||
|param={{{1}}} |
|||
|desc= The infobox contents, including all the information rows |
|||
|eg= <pre class=mw-code><!-- rows, for example: |
|||
{{row/image+artist}} |
|||
{{row/kv | Featured in | ''{{{books}}}'' }} |
|||
--></pre> |
|||
}} |
|||
<!-- main-params --> |
|||
{{docs/row/optional |
|||
|param=main-params |
|||
|desc= Extra HTML parameters to add to the infobox as a whole |
|||
|eg= |
|||
}} |
|||
<!-- title-row-params --> |
|||
{{docs/row/optional |
|||
|param=title-row-params |
|||
|desc= Extra HTML attributes to add to the title row <code><nowiki><tr></nowiki></code> element |
|||
|eg= |
|||
}} |
|||
<!-- title-params --> |
|||
{{docs/row/optional |
|||
|param= title-parmas |
|||
|desc= Extra HTML attributes to add to the title cell <code><nowiki><td></nowiki></code> element |
|||
|eg= |
|||
}} |
|||
<!-- classes --> |
|||
{{docs/row/optional |
|||
|param= classes |
|||
|desc= Extra css classes to apply to the infobox as a whole |
|||
|eg= |
|||
}} |
|||
<!-- title-classes --> |
|||
{{docs/row/optional |
|||
|param= title-classes |
|||
|desc= Extra css to apply to the title cell <code><nowiki><td></nowiki></code> element |
|||
|eg= |
|||
}} |
|||
<!-- cols --> |
|||
{{docs/row/optional |
|||
|param= cols |
|||
|desc= The number of columns in the rest of the infobox. |
|||
|eg= |
|||
}} |
|||
<!-- title-align --> |
|||
{{docs/row/optional |
|||
|param= title-align |
|||
|desc= value for the |
|||
|eg= |
|||
}} |
|||
<!-- default-cats --> |
|||
{{docs/row/optional |
|||
|param= default-cats |
|||
|desc= the categories to include on any article using this infobox |
|||
|eg= |
|||
}} |
|||
<!-- replacement-cats --> |
|||
{{docs/row/optional |
|||
|param=replacement-cats |
|||
|desc= Pass in <code><nowiki>{{{cats|}}}</nowiki></code> to override the <code>default-cats</code> parameter on a per-page basis |
|||
|eg=<code><nowiki>|replacement-cats={{{cats|}}}</nowiki></code> allows all users of the infobox to<br>pass <code><nowiki>|cats=</nowiki></code> and remove any automatic categories. |
|||
}} |
|||
|} |
|||
== Derived Templates == |
|||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing of usage|here}} |
|||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}} |
Revisión actual - 22:09 8 jul 2020
{{{title}}} | |
---|---|
{{{1}}} |
This template is a basis for all infobox templates.
Template
{{food |id= |title= |1=<!-- rows, for example: {{row/image+artist}} {{row/kv | Featured in | ''{{{books}}}'' }} --> |main-params= |classes= |cats= |default-cats= |title-row-params= |title-align=center |title-params= |title-classes= |cols=2 }}
Parameters
Highlighted lines indicate mandatory parameters.
On lines with multiple parameters (e.g. |id=
) pick only the one most appropriate.
Parameter | Description | Examples |
---|---|---|
id
|
Use this to apply an id html parameter to the generated infobox. It is required for the edit-templates gadget to work.
|
|
title
|
Use this to fill the header-row of the infobox with a title. |
|
{{{1}}}
|
The infobox contents, including all the information rows |
<!-- rows, for example: {{row/image+artist}} {{row/kv | Featured in | ''{{{books}}}'' }} --> |
main-params
|
Extra HTML parameters to add to the infobox as a whole | |
title-row-params
|
Extra HTML attributes to add to the title row <tr> element
|
|
title-parmas
|
Extra HTML attributes to add to the title cell <td> element
|
|
classes
|
Extra css classes to apply to the infobox as a whole | |
title-classes
|
Extra css to apply to the title cell <td> element
|
|
cols
|
The number of columns in the rest of the infobox. | |
title-align
|
value for the | |
default-cats
|
the categories to include on any article using this infobox | |
replacement-cats
|
Pass in {{{cats|}}} to override the default-cats parameter on a per-page basis
|
|
Derived Templates
- Plantilla:Book (transclusión) (← enlaces)
- Plantilla:Character (transclusión) (← enlaces)
- Plantilla:Shard info (transclusión) (← enlaces)
- Plantilla:Location (transclusión) (← enlaces)
- Plantilla:Row/kv (← enlaces)
- Plantilla:Magic system (transclusión) (← enlaces)
- Plantilla:Row/image (← enlaces)
- Plantilla:Group (transclusión) (← enlaces)
- Plantilla:Event (transclusión) (← enlaces)
- Plantilla:Item (transclusión) (← enlaces)
- Plantilla:Literature (transclusión) (← enlaces)
- Plantilla:Food (transclusión) (← enlaces)
- Plantilla:Culture (transclusión) (← enlaces)
- Plantilla:Shardworld (transclusión) (← enlaces)
- Plantilla:Perpendicularity (transclusión) (← enlaces)
- Plantilla:Disease (transclusión) (← enlaces)
- Plantilla:Fabrial (transclusión) (← enlaces)
- Plantilla:Radiant (transclusión) (← enlaces)
- Plantilla:Noble house (transclusión) (← enlaces)
- Plantilla:Vehicle (transclusión) (← enlaces)
- Plantilla:Architecture (transclusión) (← enlaces)
- Plantilla:Geography (transclusión) (← enlaces)
- Plantilla:Character/family (transclusión) (← enlaces)
- Plantilla:Aspect (transclusión) (← enlaces)
- Plantilla:Row/header (← enlaces)
- Plantilla:Sapient (transclusión) (← enlaces)
- Plantilla:Chapter Summary (transclusión) (← enlaces)
- Plantilla:Lifeform (transclusión) (← enlaces)
- Plantilla:Nation (transclusión) (← enlaces)
- Plantilla:Settlement (transclusión) (← enlaces)
- Plantilla:Business (transclusión) (← enlaces)
- Plantilla:Planetary system (transclusión) (← enlaces)
- Plantilla:Example (transclusión) (← enlaces)
- Plantilla:Missing/world (← enlaces)
- Plantilla:Media (transclusión) (← enlaces)
- Plantilla:Row/image+artist (← enlaces)
- Plantilla:Magic (transclusión) (← enlaces)
- Plantilla:Artist (transclusión) (← enlaces)
- Plantilla:Peoples (transclusión) (← enlaces)
- Plantilla:Info/universe (← enlaces)
- Plantilla:Info/world (← enlaces)
- Plantilla:Info/creator (← enlaces)
- Plantilla:Info/type (← enlaces)
- Plantilla:Info/creators (← enlaces)
- Plantilla:Info/earth (← enlaces)
- Plantilla:Info/owner (← enlaces)
- Plantilla:Infobox/missing-id (← enlaces)
- Plantilla:Info/origin (← enlaces)
- Plantilla:Info/function (← enlaces)
- Plantilla:Info/ingredients (← enlaces)
- Plantilla:Info/owners (← enlaces)
- Plantilla:Info/taste (← enlaces)
- Plantilla:Missing/required (← enlaces)
- Plantilla:Info/row (← enlaces)
- Plantilla:Info/city (← enlaces)
- Plantilla:Info/usage (← enlaces)
- Plantilla:Info/nation (← enlaces)
- Plantilla:Info/region (← enlaces)
- Plantilla:Info/state (← enlaces)
- Plantilla:Info/dominance (← enlaces)
- Plantilla:Metal/art (transclusión) (← enlaces)