Template:Gallery: Difference between revisions
Jump to navigation
Jump to search
(create template-helper page) |
(include gallery pre-text in template inclusion) |
||
| Line 4: | Line 4: | ||
=Gallery= | =Gallery= | ||
===Source=== | ===Source=== | ||
<onlyinclude> | |||
<pre><nowiki> | <pre><nowiki> | ||
<gallery> | <gallery> | ||
| Line 18: | Line 19: | ||
</gallery> | </gallery> | ||
</nowiki></pre> | </nowiki></pre> | ||
</onlyinclude> | |||
===Use=== | ===Use=== | ||
<gallery> | <gallery> | ||
Latest revision as of 18:54, 29 August 2024
Quick ref instructions for making use of mw:Help:Images#Gallery_syntax. Use by including {{gallery}} on your page and viewing as a preview. Click the link to view the template and instructions in full. Category:Gallery
Gallery[edit source]
Source[edit source]
<gallery>
File:Example.jpg|Item 1
File:Example.jpg|a link to [[Help:Contents]]
File:Example.jpg
File:Example.jpg|alt=An example image. It has flowers
File:Example.jpg|''italic caption''
File:Example.jpg|link=https://example.com|This text will not render because an external link came first
File:Example.jpg|Links to external website|link=https://example.com
File:Example.jpg|link=w:Main_Page|Internal link
Example.jpg|on page "{{PAGENAME}}"
File:Using Firefox.pdf|page=72
</gallery>
Use[edit source]
a link to Help:Contents
Future plans for page[edit source]
Might move to something shorter and memorably prefix-namespaces in the future. quickref, or ref
template:ref/gallery --> {{ref/gallery}}
template:ref / template:ref/ --> {{ref}} -->> lists: gallery, (and other) template reference pages