Actions

Archived talk

Difference between revisions of "Upgrading and Migrating FAQs version 1.0"

From Joomla! Documentation

m
m (Example renderings)
Line 12: Line 12:
 
==Example renderings==
 
==Example renderings==
 
<!-- the must be NO SPACE surrounding the pipe for this demo. will be fixed in the "real" template -->
 
<!-- the must be NO SPACE surrounding the pipe for this demo. will be fixed in the "real" template -->
{{{{FULLPAGENAME}}/update_faq|1=What is a patch?}}
+
<nowiki>{{update_faq|What is a patch?}}</nowiki>
 +
{{{{FULLPAGENAME}}/update_faq|What is a patch?}}
  
{{{{FULLPAGENAME}}/update_faq|1=What is a patch?|2=How to apply a patch package}}
+
<nowiki>{{update_faq|What is a patch?|How to apply a patch package}}</nowiki>
 +
{{{{FULLPAGENAME}}/update_faq|What is a patch?|How to apply a patch package}}

Revision as of 14:22, 22 March 2008

This page seems like a good source to replace the various individual Wiki templates used in most "info boxes". The wiki extension "Labeled Section Transclusion" (LST) seems suitable to replace the regular (limited) transclusion feature. Update/upgrade instruction pages could then use "LST" to fetch the content from a section only, i.e. using the #section-h function:

{{#section-h: Upgrading and Migrating FAQs | What is a patch?}}

results in:

Wrapped up in a wiki template on its own, which also takes care of the "ambox info style", this can be reduced to:

{{update_faq | What is a patch? }}

and would trasclude the content. If an optional caption is supplied, it creates a link to the FAQ:

{{update_faq | What is a patch? | How to apply a patch package}}

Example renderings

{{update_faq|What is a patch?}}

Archived talk:Upgrading and Migrating FAQs version 1.0/update faq

{{update_faq|What is a patch?|How to apply a patch package}}

Archived talk:Upgrading and Migrating FAQs version 1.0/update faq