Diferencia entre revisiones de «Plantilla:!/doc»

De La Base Comunitaria de Conocimientos de la Economía Basada en Recursos
Saltar a: navegación, buscar
m (1 revisión)
(See also: restore </includeonly> removed in error)
Línea 1: Línea 1:
{{Subpágina de documentación}}
+
{{Documentation subpage}}
=== Uso ===
+
<!-- DO NOT move the "pp-template" to the template page since the ! template should be as short as possible to save server load (to not break template inclusion limits). -->
Esta plantilla auxiliar permite poner «<code>|</code>» dentro de los parámetros de plantillas. Es necesaria si el carácter se usa en la sintaxis wiki de una [[Ayuda:Tablas|tabla]], o si el parámetro está automáticamente enlazado y desea usar una [[Pleca|barra vertical]] para especificar un texto de enlace diferente del nombre de la página a la que se enlaza. En otros casos es mejor usar «<code>&amp;#124;</code>».
+
{{high-risk|2,500,000+}}
 +
__NOTOC__
  
Esta plantilla no debe usarse para poner el carácter como texto en una tabla wiki ni en una firma de usuario personalizada; en esos casos puede usarse «<code>&amp;#124;</code>».
+
== Usage ==
  
=== Plantillas relacionadas ===
+
This is the {{t<noinclude>n</noinclude><includeonly>l</includeonly>|!}} meta-template. Its use is analogous to an [[escape character]].
* {{ep|!!}}
+
* {{ep|!-}}
+
<includeonly>
+
[[Categoría:Wikipedia:Plantillas para evitar la evaluación por MediaWiki]]
+
  
[[ab:Ашаблон:!]]
+
This is an auxiliary template allowing the encoding of "<code>|</code>" within template parameters, because the pipe character is normally interpreted as a separator. This template is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "<code>&amp;#124;</code>".
[[ace:Pola:!]]
+
 
[[af:Sjabloon:!]]
+
This template cannot be used for putting the character as text in a wiki table; in that case, again,  "<code>&amp;#124;</code>" can be used.
[[ak:Şablon:!]]
+
 
[[als:Vorlage:!]]
+
Note that no special template is needed for "<code>!</code>" (exclamation mark).
[[am:መለጠፊያ:!]]
+
 
[[an:Plantilla:!]]
+
This is a [[WP:high-risk template|high-risk template]], and it usually cannot be [[Wikipedia:Substitution|substituted]] (see conditions for substing on [[#Substitution|the section below]]).
[[ang:Bysen:!]]
+
 
[[ar:قالب:!]]
+
=== Substitution ===
[[arc:ܩܠܒܐ:!]]
+
It is possible to [[Wikipedia:Substitution|substitute]] <nowiki>{{!}}</nowiki> only if an unescaped "'''<code>|</code>'''" works as expected, i.e. after substituting the template containing <nowiki>{{!}}</nowiki>, or after eliminating an
[[arz:قالب:!]]
+
[[mw:Help:Extension:ParserFunctions#.23if|#if]] containing <nowiki>{{!}}</nowiki>.
[[as:সাঁচ:!]]
+
 
[[ast:Plantía:!]]
+
=== A simple example ===
[[av:Шаблон:!]]
+
 
[[ay:Plantilla:!]]
+
The following template code for {{tl|Quotation}} using an ordinary pipe character,
[[az:Şablon:!]]
+
* <code><nowiki>{{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}</nowiki></code>
[[ba:Ҡалып:!]]
+
 
[[bar:Vorlog:!]]
+
produces:
[[bat-smg:Šabluons:!]]
+
{{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}
[[bcl:Plantilya:!]]
+
 
[[be:Шаблон:!]]
+
whereas this code using the <nowiki>{{!}}</nowiki> meta-template,
[[be-x-old:Шаблён:!]]
+
* <code><nowiki>{{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}</nowiki></code>
[[bg:Шаблон:!]]
+
 
[[bh:टेम्पलेट:!]]
+
produces:
[[bi:Template:!]]
+
{{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}
[[bjn:Citakan:!]]
+
 
[[bm:Modèle:!]]
+
== See also ==
[[bn:টেমপ্লেট:!]]
+
* {{tl|!!}} creates ||
[[bo:Template:!]]
+
* {{tl|!-}} creates |-
[[bpy:মডেল:!]]
+
* {{tl|-!}} creates &amp;nbsp;|
[[br:Patrom:!]]
+
* {{tn|'}} and related
[[bs:Šablon:!]]
+
* [[Wikipedia:Conditional tables]]
[[bug:Templat:!]]
+
* {{tl|pipe}} - Note that this one looks like {{tlf|!}} but has a very different meaning for the MediaWiki parser and thus has different functionality.
[[bxr:Template:!]]
+
* {{tn|(}} creates {
[[ca:Plantilla:!]]
+
* {{tn|((}} creates {{
[[cbk-zam:Plantilla:!]]
+
* {{tn|)}} creates }
[[ce:Куцкеп:!]]
+
* {{tn|))}} creates }}
[[ceb:Plantilya:!]]
+
* {{tl|!(}} creates [
[[ch:Template:!]]
+
* {{tl|)!}} creates ]  
[[chr:Template:!]]
+
* {{tl|(!}} creates {|
[[chy:Template:!]]
+
* {{tl|!)}} creates |} 
[[ckb:داڕێژە:!]]
+
* {{tl|1==}} creates =
[[co:Template:!]]
+
* {{tl|Bar box}} — since {{tl|Bar}} redirects here
[[cr:Template:!]]
+
 
[[crh:Şablon:!]]
+
<includeonly>
[[cs:Šablona:!]]
+
[[Category:Template namespace templates]]
[[csb:Szablóna:!]]
+
[[Category:Wikipedia formatting and function templates]]
[[cu:Обраꙁьць:!]]
+
[[cv:Шаблон:!]]
+
[[cy:Nodyn:!]]
+
[[da:Skabelon:!]]
+
[[de:Vorlage:!]]
+
[[diq:Şablon:!]]
+
[[dsb:Pśedłoga:!]]
+
[[eo:Ŝablono:!]]
+
[[et:Mall:!]]
+
[[dv:ފަންވަތް:!]]
+
[[ee:Template:!]]
+
[[el:Πρότυπο:!]]
+
[[eml:Template:!]]
+
[[en:Template:!]]
+
[[eu:Txantiloi:!]]
+
[[ext:Prantilla:!]]
+
[[fa:الگو:!]]
+
[[fiu-vro:Näüdüs:!]]
+
[[fj:Template:!]]
+
[[fo:Fyrimynd:!]]
+
[[fr:Modèle:!]]
+
[[hi:साँचा:!]]
+
[[hif:Template:!]]
+
[[hr:Predložak:!]]
+
[[hsb:Předłoha:!]]
+
[[ht:Modèl:!]]
+
[[hu:Sablon:!]]
+
[[hy:Կաղապար:!]]
+
[[ia:Patrono:!]]
+
[[id:Templat:!]]
+
[[ie:Avise:!]]
+
[[ig:Àtụ:!]]
+
[[ilo:Plantilia:!]]
+
[[io:Shablono:!]]
+
[[is:Snið:!]]
+
[[it:Template:!]]
+
[[iu:Template:!]]
+
[[ja:Template:!]]
+
[[jbo:Template:!]]
+
[[jv:Cithakan:!]]
+
[[ka:თარგი:!]]
+
[[ki:Template:!]]
+
[[kk:Үлгі:!]]
+
[[kaa:Shablon:!]]
+
[[kab:Talɣa:!]]
+
[[kbd:Шаблон:!]]
+
[[kg:Template:!-]]
+
[[kl:Ilisserut:!]]
+
[[km:ទំព័រគំរូ:!]]
+
[[kn:ಟೆಂಪ್ಲೇಟು:!]]
+
[[ko:틀:!]]
+
[[koi:Шаблон:!]]
+
[[krc:Шаблон:!]]
+
[[ks:فرما:!]]
+
[[ksh:Schablon:!]]
+
[[ku:Şablon:!]]
+
[[kv:Шаблон:!]]
+
[[kw:Skantlyn:!]]
+
[[ky:Калып:Өлкө 7]]
+
[[la:Formula:!]]
+
[[lad:Xablón:!]]
+
[[lb:Schabloun:!]]
+
[[lbe:Шаблон:!]]
+
[[lez:Шаблон:!]]
+
[[li:Sjabloon:!]]
+
[[lij:Template:!]]
+
[[lmo:Mudel:!]]
+
[[ln:Modèle:!]]
+
[[lo:ແມ່ແບບ:!]]
+
[[lt:Šablonas:!]]
+
[[ltg:Taiss:!]]
+
[[lv:Veidne:!]]
+
[[map-bms:Cithakan:!]]
+
[[mdf:Шаблон:!]]
+
[[mg:Endrika:!]]
+
[[mhr:Кышкар:!]]
+
[[mi:Template:!]]
+
[[min:Templat:!]]
+
[[mk:Шаблон:!]]
+
[[ml:ഫലകം:!]]
+
[[mn:Загвар:!]]
+
[[mr:साचा:!]]
+
[[mrj:Шаблон:!]]
+
[[ms:Templat:!]]
+
[[mt:Mudell:!]]
+
[[mwl:Modelo:!]]
+
[[my:Template:!]]
+
[[myv:ЛопаПарцун:!]]
+
[[mzn:شابلون:!]]
+
[[na:Template:!]]
+
[[nah:Nemachiyōtīlli:!]]
+
[[nap:Modello:!]]
+
[[nds:Vörlaag:!]]
+
[[nds-nl:Mal:!]]
+
[[ne:ढाँचा:!]]
+
[[new:Template:!]]
+
[[nl:Sjabloon:!]]
+
[[nn:Mal:!]]
+
[[no:Mal:!]]
+
[[nov:Template:!]]
+
[[nrm:Template:!]]
+
[[nso:Template:!]]
+
[[nv:Bee álnééhí:!]]
+
[[oc:Modèl:!]]
+
[[om:Template:!]]
+
[[or:ଛାଞ୍ଚ:!]]
+
[[os:Хуызæг:!]]
+
[[pa:ਫਰਮਾ:!]]
+
[[pag:Template:!]]
+
[[pam:Template:!]]
+
[[pap:Template:!]]
+
[[pcd:Modèle:!]]
+
[[pdc:Moddel:!]]
+
[[pfl:Vorlach:!]]
+
[[pi:पटिरूप:!]]
+
[[pih:Template:!]]
+
[[pl:Szablon:!]]
+
[[pms:Stamp:!]]
+
[[pnb:Template:!]]
+
[[pnt:Πρότυπον:!]]
+
[[ps:کينډۍ:!]]
+
[[pt:Predefinição:!]]
+
[[qu:Plantilla:!]]
+
[[rm:Model:!]]
+
[[rmy:Sikavno:!]]
+
[[ro:Format:!]]
+
[[roa-rup:Template:!]]
+
[[roa-tara:Template:!]]
+
[[ru:Шаблон:!]]
+
[[sk:Šablóna:!]]
+
[[sl:Template:!]]
+
[[sn:Template:!]]
+
[[so:Template:!]]
+
[[sq:Stampa:!]]
+
[[sr:Шаблон:!]]
+
[[ur:سانچہ:!]]
+
[[uz:Andoza:!]]
+
[[ve:Template:!]]
+
[[vec:Modèl:!]]
+
[[vep:Šablon:!]]
+
[[vi:Bản mẫu:!]]
+
[[vls:Patrôon:!]]
+
[[vo:Samafomot:!]]
+
[[wa:Modele:!]]
+
[[war:Batakan:!]]
+
[[wo:Royuwaay:!]]
+
[[wuu:模板:!]]
+
[[xal:Кевләр:!]]
+
[[xmf:თარგი:!]]
+
[[yi:מוסטער:!]]
+
[[yo:Àdàkọ:!]]
+
[[za:模板:!]]
+
[[zea:Sjabloon:!]]
+
[[zh:Template:!]]
+
[[zh-classical:Template:!]]
+
[[zh-min-nan:Template:!]]
+
[[zh-yue:Template:!]]
+
[[zu:Template:!]]
+
[[frp:Modèlo:!]]
+
[[frr:Vorlage:!]]
+
[[fur:Model:!]]
+
[[fy:Berjocht:!]]
+
[[ga:Teimpléad:!]]
+
[[gag:Şablon:!]]
+
[[gan:模板:!]]
+
[[gd:Teamplaid:!]]
+
[[got:𐍆𐌰𐌿𐍂𐌰𐌼𐌴𐌻𐌴𐌹𐌽𐍃:!]]
+
[[gu:ઢાંચો:!]]
+
[[gv:Clowan:!]]
+
[[ha:Template:!]]
+
[[hak:Template:!]]
+
[[haw:Anakuhi:!]]
+
[[he:תבנית:!]]
+
[[sw:Kigezo:!]]
+
[[szl:Muster:!]]
+
[[ta:வார்ப்புரு:!]]
+
[[te:మూస:!]]
+
[[tet:Template:!]]
+
[[tg:Шаблон:!]]
+
[[th:แม่แบบ:!]]
+
[[tk:Şablon:!]]
+
[[tl:Padron:!]]
+
[[tn:Template:!]]
+
[[to:Template:!]]
+
[[tpi:Templet:!]]
+
[[tr:Şablon:!]]
+
[[ts:Template:!]]
+
[[tt:Калып:!]]
+
[[tum:Template:!]]
+
[[tw:Template:!]]
+
[[ty:Modèle:!]]
+
[[udm:Шаблон:!]]
+
[[ug:قېلىپ:!]]
+
[[uk:Шаблон:!]]
+
[[ff:Modèle:!]]
+
[[fi:Malline:!]]
+
[[srn:Ankra:!]]
+
[[ss:Template:!]]
+
[[stq:Foarloage:!]]
+
[[su:Citakan:!]]
+
[[sv:Mall:!]]
+
[[rue:Шаблона:!]]
+
[[rw:Template:!]]
+
[[sa:फलकम्:!]]
+
[[sah:Халыып:!]]
+
[[sc:Template:!]]
+
[[scn:Template:!]]
+
[[sco:Template:!]]
+
[[sd:سانچو:!]]
+
[[se:Málle:!]]
+
[[sg:Modèle:!]]
+
[[sh:Šablon:!]]
+
[[si:සැකිල්ල:!]]
+
[[simple:Template:!]]
+
 
</includeonly>
 
</includeonly>

Revisión de 22:56 5 mar 2013


Usage

This is the {{!}} meta-template. Its use is analogous to an escape character.

This is an auxiliary template allowing the encoding of "|" within template parameters, because the pipe character is normally interpreted as a separator. This template is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "&#124;".

This template cannot be used for putting the character as text in a wiki table; in that case, again, "&#124;" can be used.

Note that no special template is needed for "!" (exclamation mark).

This is a high-risk template, and it usually cannot be substituted (see conditions for substing on the section below).

Substitution

It is possible to substitute {{!}} only if an unescaped "|" works as expected, i.e. after substituting the template containing {{!}}, or after eliminating an #if containing {{!}}.

A simple example

The following template code for {{Quotation}} using an ordinary pipe character,

  • {{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}

produces:

It is not possible to use an ordinary pipe character

in template parameters, as it will be interpreted as a separator., Help:Template#Usage hints and workarounds

whereas this code using the {{!}} meta-template,

  • {{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}

produces:

It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.

Help:Template#Usage hints and workarounds

See also

  • {{!!}} creates ||
  • {{!-}} creates |-
  • {{-!}} creates &nbsp;|
  • {{'}} and related
  • Wikipedia:Conditional tables
  • {{pipe}} - Note that this one looks like {{!}} but has a very different meaning for the MediaWiki parser and thus has different functionality.
  • {{(}} creates {
  • {{((}} creates {{
  • {{)}} creates }
  • {{))}} creates }}
  • {{!(}} creates [
  • {{)!}} creates ]
  • {{(!}} creates {|
  • {{!)}} creates |}
  • {{=}} creates =
  • {{Bar box}} — since {{Bar}} redirects here


Herramientas personales
Espacios de nombres

Variantes
Acciones
Navegación
Herramientas
Compartir