Template:Portal-inline-template/doc
| This is a documentation subpage for Template:Portal-inline-template. It contains usage information, categories and other content that is not part of the original template page. |
| This is a documentation subpage for Template:Portal-inline-template. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to produce a link to a portal in a template, such as an infobox.
Contents
Differences between {{Portal-inline}} and {{Portal-inline-template}}
{{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.
{{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 {{Infobox Wikipedia WikIProject}}
Usage
{{portal-inline-template|Name}}
Parameters
1- The first unnamed parameter is the name of the portal.
size- specify
|size=tinyto show a 16×16 image instead of the usual size. text- specify
|text=(name)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
* {{Portal-inline-template|Sexuality}}
Produces:
* {{Portal-inline-template|size=tiny|Sexuality}}
Produces:
* {{Portal-inline-template|Sexuality|text=Sex portal}}
Produces:
See also
Portal content templates
- To display "selected content" on the portal main page
- {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
- {{Transclude random subpage}}—transcludes random portal subpage.
- {{Random portal component}}—transcludes random portal subpage.
- {{Random subpage}}—transcludes random portal subpages.
- To organize "selected content" on subpages
- {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
- {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
- {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portal-image}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
Selected page templates, used on subpages of older portals
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- {{Selected X}}
Related templates
- {{Project template list}}
- {{Basic portal start page}} (deleted)—Used to create portal main pages.
- {{Random box-header subpage}}—randomized selection from {{Box-header/1}} to {{Box-header/42}}.