Jump to content

Template:Main gallery: Difference between revisions

From Detective Conan Wiki
Updated gallery template, now with "Check out the gallery" hyperlink image.
Eyacorkett (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{rellink|extraclasses=noprint relarticle mainarticle|[[File:Wiki_Gallery.png|280px|link={{PAGENAME}}/Gallery]] <br> For the full gallery, click here: [[{{{1|{{PAGENAME}}/Gallery}}}|{{{2|{{PAGENAME}}/Gallery}}}]]}}
{{rellink|extraclasses=noprint relarticle mainarticle|For the full gallery, click here: {{#if: {{{1|}}} | [[{{{1|}}}|{{{2|}}}]] }} }}[[File:Wiki_Gallery.png|280px|link={{PAGENAME}}/Gallery]]
 
{{code
<noinclude>
|css=
.rellink, .rellink + p:has(img){
margin: 0px !important;
}
}}<noinclude>
== Usage ==
== Usage ==
To link to a "gallery" page of an article, use <nowiki>{{main gallery}}</nowiki>.
To link to a "gallery" page of an article, use <nowiki>{{main gallery}}</nowiki>.


You can also precise a specific link and display name: <nowiki>{{main gallery|Article link|Article name}}</nowiki>. It will then display:
You can also precise a specific link and display name: <nowiki>{{main gallery|Article link|Article name}}</nowiki>. It will then display:
:<div class="noprint">[[File:Wiki_Gallery.png|280px|link={{PAGENAME}}/Gallery]] <br> ''For the full gallery, click here: [[Article link|Article name]]''</div>
 
[[Category:Templates]]
:<div class="noprint">''For the full gallery, click here: [[Article link|Article name]]''</div>
</noinclude>
[[File:Wiki Gallery.png|280px|link={{PAGENAME}}/Gallery]]
 
[[Category:Templates]]</noinclude>

Latest revision as of 17:43, 22 July 2026

Usage

To link to a "gallery" page of an article, use {{main gallery}}.

You can also precise a specific link and display name: {{main gallery|Article link|Article name}}. It will then display:

For the full gallery, click here: Article name