Difference between revisions of "Template:Portal-inline-template/doc"

From blackwiki
Jump to navigation Jump to search
test>Gonzo fan2007
m (error)
m (3 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Portal-inline/doc]]
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{documentation subpage}}
 
 
 
This template is used to produce a link to a [[Portal:Contents/Portals|portal]] in a template, such as an infobox.
 
 
 
== Differences between <nowiki>{{Portal-inline}} and {{Portal-inline-template}}</nowiki> ==
 
 
 
{{tl|Portal-inline}} creates one portal link with no accessibility context. It is visible in printer and mobile view. This is useful, for example, if making a mid-sentence link on a talk page, or if there is an alternative list structure in a "See also" section.
 
 
 
{{tl|Portal-inline-template}} does the same thing as above, but drops the word "portal" as part of the link. This template can be used where a header already specifies that the associated link is to a portal, such as {{tl|Infobox Wikipedia WikiProject}}
 
 
 
== Usage ==
 
<pre>
 
{{portal-inline-template|Name}}
 
</pre>
 
 
 
=== Parameters ===
 
; <code>1</code>: The first unnamed parameter is the name of the portal.
 
; <code>size</code>: specify <code>|size=tiny</code> to show a 16×16 image instead of the usual size.
 
; <code>text</code>: specify <code>|text=(name)</code> for a different associated name to appear.
 
 
 
==Image==
 
The portal image name is found using [[Module:Portal]]. Please see [[Module:Portal#Image]] for instructions on how to add, update, or remove an image.
 
 
 
== Examples ==
 
<pre>
 
* {{Portal-inline-template|Sexuality}}
 
</pre>
 
 
 
Produces:
 
 
 
* {{Portal-inline-template|Sexuality}}
 
----
 
<pre>
 
* {{Portal-inline-template|size=tiny|Sexuality}}
 
</pre>
 
 
 
Produces:
 
 
 
* {{Portal-inline-template|size=tiny|Sexuality}}
 
----
 
<pre>
 
* {{Portal-inline-template|Sexuality|text=Sex portal}}
 
</pre>
 
 
 
Produces:
 
 
 
* {{Portal-inline-template|Sexuality|text=Sex portal}}
 
 
 
== See also ==
 
* [[Template:Subject bar]]
 
{{Portal template list}}
 
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
| <!--Categories below this line, please; interwikis at Wikidata-->
 
[[Category:Internal link templates]]
 
[[Category:Portal namespace templates]]
 
[[Category:Wikipedia Portal navflags]]
 
[[Category:Exclude in print]]
 
 
 
 
 
}}</includeonly>
 
 
 
 
 
 
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
 
}}</includeonly>
 

Latest revision as of 16:36, 8 September 2020