Toggle menu
244,5 tis.
102
18
637 tis.
Hrvatska internetska enciklopedija
Toggle preferences menu
Toggle personal menu
Niste prijavljeni
Your IP address will be publicly visible if you make any edits.

Pomoć:Transkluzija

Izvor: Hrvatska internetska enciklopedija

Za više informacija o pojmu, pročitajte članak Transkluzija.

Transclusion refers to the inclusion of the content from one document within another document by reference. In Wikipedia, transclusion means the MediaWiki software retrieving the content from a source page, often a template, and incorporating it into the content of a target page.

Kako radi transkluzija

Similar to creating a wikilink using double square brackets ([[Pagename]]), a page can be transcluded as a template by enclosing its title in double curly braces or double curly brackets: {{Namespace:Pagename}}. Any changes made to the source page, or template, are automatically reflected on all pages that include the transcluded content.[a]

Pravila imenskog prostora

If no namespace is specified, it is assumed to be in the Template namespace. To refer to a page in the Main article namespace, it is necessary to prefix it with a colon (:). For example:

Upravljanje transkluzijom

Transclusion and what content it includes or excludes can be modified by using the invisible wikitext tags , , , and on the Predložak:Em, as further outlined in § Transclusion markup.[b] The first three tags enable § Djelimična transkluzija, as opposed to the default behavior of double curly braces, which will transclude the entire source page's content. For § Selective transclusion, the or tags can be used and sections of the source page named, then using parser functions the template can be called with the section name as a parameter: {{#section:Pagename|Sectionname}}.

Transkluzija i supstitucija

Transclusion events occur each time the target page is loaded and the template is rendered. A related event is Substitution, where a template call is replaced with its transcluded source content at the time it is invoked in a one-time inclusion of the content. Unlike transclusion, which continuously updates the target page with changes from the source, substitution results in a one-time inclusion of the content, meaning that subsequent updates to the source content will not be reflected in the target page. For example, a template call for {{Pagename}} with the subst: prefix results in the substitution template call {{subst:Pagename}}. When invoked, this template is replaced, also referred to as substituted, with the actual wikitext of the source page at the time of the call, thereby making it a permanent part of the target page.[c]

Transkluzija podataka

Moguće je unijeti podatke s Wikipodataka u Wikipedijske članke transkluzijom s Wikipodataka.

Kako transkluzjia radi (2)

Predložak:Transcluded section Pomoć:Transkluzija/How Transclusion Works

Transkluzijska sintaksa

The general syntax for transclusion on Wikipedia follows the format {{Namespace:Pagename}}, where Namespace:Pagename specifies the title of a Wikipedia page.

Similar to creating a HIEpoveznicu using double square brackets ([[Pagename]]), a page can be transcluded as a template by enclosing its title in double curly braces: {{Namespace:Pagename}}. Any changes made to the source page, or template, are automatically reflected on all pages that include the transcluded content.[d]

Hrvatska internetska enciklopedija is structured using namespaces, which organize pages based on their function. For example, a page titled Predložak:Xtn belongs to the imenskom prostoru Hrvatska internetska enciklopedija, with Hrvatska internetska enciklopedija: as its namespace and Tips as its pagename. However, articles in the glavni imenski prostor, such as Predložak:Xtn, do not require a namespace prefix when linked using [[krumpir]], as Hrvatska internetska enciklopedija assumes any wikilink without a specified namespace belongs to the Article namespace.

When transcluding pages, if no namespace is specified, Wikipedia defaults to the Template namespace. To reference a page in the Article namespace within transclusion syntax, it must be explicitly prefixed with a colon :

(e.g., {{:Potato}}).


Pogreška u citiranju: oznake <ref> postoje za skupinu "lower-alpha", ali nema pripadajuće oznake <references group="lower-alpha"/>